<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$title}</title>
<meta name="keywords" content="{$keywords}">
<meta name="description" content="{$page_description}">
<link href="__APP____PUBLIC__/css/head.css" rel="stylesheet" type="text/css" />
<link href="__APP____PUBLIC__/css/index.css" rel="stylesheet" type="text/css" />
<link href="__APP____PUBLIC__/images/favicon.ico" type="image/ico" rel="shortcut icon">
<link href="__APP____PUBLIC__/js/p7ssm/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__APP____PUBLIC__/js/jquery-1.4.4.js"></script>
<script type="text/javascript" src="__APP____PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__APP____PUBLIC__/js/p7ssm/js/show.js"></script>
<script language="JavaScript">
jQuery(function(){
	/*-------搜索框--------*/
	jQueryq=jQuery("#searchText");
	
	var defaultValue = '请输入楼盘名称';
	if(jQueryq.val() ==  defaultValue)jQueryq.css("color","#898989");
	jQueryq.focus(function(){
		if(jQuery(this).val()==defaultValue)jQuery(this).val("");
		jQuery(this).css("color","");
	}).blur(function(){
		if(!jQuery(this).val()||jQuery(this).val()==defaultValue){
jQuery(this).css("color","#898989");
jQuery(this).val(defaultValue);
		}
	})
	jQuery(document).ready(function(){
		jQuery("#search-form").submit(function(){
			var val = jQuery("input[name='keyWord']").val();
			jQuery("input[name='keyWord']").attr("value", val.trim());
			if (jQuery("input[name='keyWord']").val() == '请输入楼盘名称') {
				jQuery("input[name='keyWord']").attr("value", '');
			}
		});
	});
	/*-----伪selet框--J_select("选择器","下拉框高度")----*/
	J_select(".select-box",420);
})
	var imgpath = 'images';
	var verifyhash = '94afdd2b';
	var modeimg = 'mode/house/images';
	var modeBase = '';
	var winduid = '';
	var windid	= '';
	var groupid	= 'guest';
	var cateid	= 'index';
	var mode = 'house';

	var longitude = {$product.longitude};//默认显示经度
	var latitude = {$product.latitude};//默认显示纬度
	var mapTitle = "{$product.productName}";//地图层显示的文字

	function initialize() {
		var map = new BMap.Map("container");          // 创建Map实例
		var point = new BMap.Point(longitude,latitude);  // 创建点坐标
		map.centerAndZoom(point,15);                  // 初始化地图,设置中心点坐标和地图级别。
		map.enableScrollWheelZoom();                  // 启用滚轮放大缩小。
		map.enableKeyboard(); 
		var marker = new BMap.Marker(point);        // 创建标注  
		map.addOverlay(marker);                     // 启用键盘操作。
		var opts = {  
		 width : 200,     // 信息窗口宽度  
		 height: 10,     // 信息窗口高度(最小)  
		 title : mapTitle  // 信息窗口标题  
		}  
		var infoWindow = new BMap.InfoWindow("", opts);  // 创建信息窗口对象  
		map.openInfoWindow(infoWindow, map.getCenter());      // 打开信息窗口  
	}
	
	function loadScript() {
		var script = document.createElement("script");
		script.src = "http://api.map.baidu.com/api?v=1.2&callback=initialize";
		document.body.appendChild(script);
	}

	
</script>

</head>
<body  onLoad="loadScript();">
	
	<div class="container">
	
	<include file="./Tpl/default/Home/head.html" /><!-- menu_bar end-->
	<eq name="product['type']" value="1" >
		<script>
			currentMenu("new");
		</script>
	</eq>
	
	<eq name="product['type']" value="2" >
		<script>
			currentMenu("second");
		</script>
	</eq>
	
	<div class="search">
		<form action="__APP__/house/search" id="search-form">
				<input type="hidden" name="type" value="2"/>
				

				<div class="select-box">
					<input type="hidden" value="" name="dist" />
					<span>区域不限</span>
					<ul>
						<li val="">区域不限</li>
						<volist name="distList" id="dist">
							<li val="{$dist.id}" >{$dist.name}</li>
						</volist>
					</ul>
				</div>
				
				<div class="select-box">
					<input type="hidden" value="" name="area" />
					<span>区域不限</span>
					<ul>
						<li val="">价格不限</li>
						<volist name="priceArr" id="price">
							<li val="{$price}" >{$key}</li>
						</volist>
					</ul>
				</div>
				<div class="select-box">
					<input type="hidden" value="" name="houseType" />
					<span>区域不限</span>
					<ul>
						<li val="">房型不限</li>
						<volist name="houseTypeArr" id="houseTypeAr">
							<li val="{$houseTypeAr}" >{$key}</li>
						</volist>
					</ul>
				</div>
				<div class="select-box">
					<input type="hidden" value="" name="useArea" />
					<span>区域不限</span>
					<ul>
						<li val="">面积不限</li>
						<volist name="areaArr" id="area">
							<li val="{$area}" >{$key}</li>
						</volist>
					</ul>
				</div>
				<input type="text" name="keyWord" id="searchText" value="请输入楼盘名称">
				<input class="btn" type="submit" value="搜  索" >
			</form>
			
		</div>
		<!-- menu_bar end-->
		
	<include file="./Tpl/default/Home/marguee_news.html" />
	
	
	<div class="breadCrumb">
		<a href="__APP__/">{$com.abbreviation}</a> &gt; 
		<eq name="product['type']" value="2" >
		<a href="__APP__/house/search?type=2" >{$com.cityName}二手房</a> &gt;
		<a href="">{$product.productName}</a>
		</eq>
		
		<eq name="product['type']" value="1" >
		<a href="__APP__/house/search?type=1">{$com.cityName}新房</a> &gt;
		<a href="" >{$product.productName}</a>
		</eq>
	</div>		
	<div id="index_content">
		<div id="contentL" class="fl">
			<div class="h-box " >
					<a id="prop_title" name="prop_title"></a>
					<h1 class="prop_title">{$product.productName}</h1>
					<div class="prop_basic">
						<div class="prop_pic">
							<include file="./Tpl/default/Home/p7ssm.html" />
						</div>
						<div class="prop_basic_left">
							<p><strong>售价：</strong><em>{$product.totalPrice|number_format=0,".",""}</em>万元</p>
							<p><strong>房型：</strong>{$view_houseType}
							<p><strong>单价：</strong>{$product.unitPrice|number_format=0,".",""}元/平米</p>
							<p><strong>产证面积：</strong>{$product.area|number_format=2,".",""}平米</p>
							<p><strong>使用面积：</strong>{$product.useArea|number_format=2,".",""}平米</p>
							<p><strong>房龄：</strong>{$product.houseAge}年</p>
						</div>
						<div class="prop_basic_right">
							<p><strong>楼层</strong>：{$product.floor}</p>
							<p><strong>朝向：</strong>{$view_direction}</p>
							<p><strong>装修：</strong>{$view_decoration}</p>
							
							<p>发布时间：{$product.date}</p>
						</div>
						<div class="areaInfo">
							<p><strong>地址：</strong>{$product.address}</p>
							<p><strong>小区：</strong>{$product.communityName}&nbsp;<span id="showMap"><a href="#map">查看地图</a></span></p>
							<div class="prop_tel"><h3>{$agent.mobile} {$agent.nickName}</h3></div>
						</div>
						
						
						<div id="filter">
							<ul class="tabbar">
							<li class="selected"><a href="#prop_title">房源介绍</a></li>
							</ul>
						</div>
						
						<div class="prop_desc">
							<strong class="prop_rec">{$product.recommendation}</strong>
							{$product.description}
							
							<span id="pic"><br/></span>
							<p>
								<center>
									
									<foreach name='picList' item="pic">
										<img src="__APP__{$pic.bigPicUrl}" alt="{$pic.title}" /><br>
										<p class="imgfont">{$pic.title}</p><br>
									</foreach>
									
								</center>
							</p>
						</div>
						
						<p id="map"><br/></p>
						<div id="container"  class="prop_map">
							
						</div>

						<div class="prop_tel"><h3>{$agent.mobile} {$agent.nickName}</h3></div>
						
						<div class="house-around">
						<dl>
							
							<notempty  name="product.subway"><dd><label>地铁：</label>{$product.subway}</dd></notempty>
							<notempty  name="product.bus"><dd><label>公交：</label>{$product.bus}</dd></notempty>
							<notempty  name="product.transportHub"><dd><label>临近交通枢纽：</label>{$product.transportHub}</dd></notempty>
							<notempty  name="product.school"><dd><label>学校：</label>{$product.school}</dd></notempty>
							<notempty  name="product.kindergarten"><dd><label>幼儿园：</label>{$product.kindergarten}</dd></notempty>
							<notempty  name="product.shopping"><dd><label>商场：</label>{$product.shopping}</dd></notempty>
							<notempty  name="product.hospital"><dd><label>医院：</label>{$product.hospital}</dd></notempty>
							<notempty  name="product.bank"><dd><label>银行：</label>{$product.bank}</dd></notempty>
							<notempty  name="product.post"><dd><label>邮局：</label>{$product.post}</dd></notempty>
							<notempty  name="product.dining"><dd><label>餐饮：</label>{$product.dining}</dd></notempty>
							<notempty  name="product.businessCenter"><dd><label>临近商业中心：</label>{$product.businessCenter}</dd></notempty>
							<notempty  name="product.ortherFacility"><dd><label>其它：</label>{$product.ortherFacility}</dd></notempty>
						</dl>
						</div>

					<div class="clear"></div>
					</div>
					
			</div>
			
			
			
		</div>
		
		<include file="./Tpl/default/Home/right.html" />
	</div><!-- index_content end -->
	
	<div class="clear"></div>
	
	<include file="./Tpl/default/Home/footer.html" /><!-- menu_bar end-->
	
	</div>
	
</body>
</html>